import 'package:get/get.dart';
import '../../data/services/file_service.dart';
import '../../data/services/storage_service.dart';
import '../../data/services/file_system_service.dart';
import '../../data/services/preferences_service.dart';
import '../../pages/home/home_logic.dart';

/// 初始绑定 - Initial Binding
/// 负责在应用启动时注册全局依赖
class InitialBinding extends Bindings {
  @override
  void dependencies() {
    // 注册偏好设置服务 - Register Preferences Service
    Get.put<PreferencesService>(PreferencesService(), permanent: true);
    
    // 注册文件服务 - Register File Service
    Get.put<FileService>(FileService(), permanent: true);
    
    // 注册存储服务 - Register Storage Service
    Get.put<StorageService>(StorageService(), permanent: true);
    
    // 注册文件系统服务 - Register File System Service
    Get.put<FileSystemService>(FileSystemService(), permanent: true);
    
    // 注册首页逻辑控制器 - Register Home Logic Controller
    Get.put<HomeLogic>(HomeLogic(), permanent: true);
  }
}